
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.infrastructure.model.common;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
/**
 * @author HlpayTeam
 * @date 2024/09/06 9:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_common_change_log")
public class ChangeLogDO extends BaseDO {
	
	/**
	 * user_id
	 */
	private Long userId;
	
	/**
	 * 模块中的子类型
	 */
	private Integer type;
	/**
	 * 1 用户 2 角色 3 权限 4 组织
	 * @see com.hlkj.pay.enums.CommonEnum.CHANGE_LOG_MODEL_TYPE
	 */
	private Integer modelType;
	
	/**
	 * admin 服务的行为 log code
	 */
	private String logCode;
	
	/**
	 * admin 服务的行为 log code
	 */
	private String relationCode;
	
	/**
	 * 变更之前的值
	 */
	private String beforeValue;
	
	/**
	 * 变更之后的值
	 */
	private String afterValue;
	/**
	 * ip
	 */
	private String ip;
	/**
	 * ip 地址
	 */
	private String ipLocation;
	
}

